﻿@model BDSimpleStatus.Models.ServerCheckModel

@{
    ViewBag.Title = "Delete - ";
}

<h2>Delete Check</h2>
<h3>You are about to delete a server check, are you sure you want to do this?</h3>

<div id="deletewrap">
    <div class="display-label1">Name:</div>
    <div class="display-field1">
        @Html.DisplayFor(model => model.Name)
    </div>
    <div class="display-label1">URL:</div>
    <div class="display-field1">
        @Html.DisplayFor(model => model.URL)
    </div>
    <div class="display-label1">Description</div>
    <div class="display-field1">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="groupwrap">
        <div class="leftfloat">
            <div class="display-label1">CheckPing</div>
            <div class="display-field1">
                @Html.Label(Model.CheckPing.ToString())
            </div>
        </div>
        <div class="leftfloat">
            <div class="display-label1">CheckHttp</div>
            <div class="display-field1">
                @Html.Label(Model.CheckHttp.ToString())
            </div>
        </div>
        <div class="leftfloat">
            <div class="display-label1">Frequency</div>
            <div class="display-field1">
                @Html.DisplayFor(model => model.Frequency)
            </div>
        </div>
    </div>
    <br class="clearleft" />
    <div class="groupwrap">
        <div class="leftfloat">
            <div class="display-label1">NextCheckDate</div>
            <div class="display-field1">
                @Html.DisplayFor(model => model.NextCheckDate)
            </div>
        </div>
        <div class="leftfloat">
            <div class="display-label1">LastCheckDate</div>
            <div class="display-field1">
                @Html.DisplayFor(model => model.LastCheckDate)
            </div>
        </div>
    </div>
    <br class="clearleft" />
    <div class="display-label1">Message</div>
    <div class="display-field1">
        @Html.DisplayFor(model => model.Message)
    </div>

    @using (Html.BeginForm()) {
        <p>
            <input type="submit" value="Delete" /> |
            @Html.ActionLink("Back to List", "Index")
        </p>
    }
</div>